home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11936 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mayne.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Sending CTRL-C over a serial line?
  5. Date: 27 Mar 1996 12:21:05 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4jc7vhINN7nh@mayne.ugrad.cs.ubc.ca>
  8. References: <4ja0hq$91n@news.oscs.montana.edu>
  9. NNTP-Posting-Host: mayne.ugrad.cs.ubc.ca
  10.  
  11. In article <4ja0hq$91n@news.oscs.montana.edu>,
  12.  <gko2708@msu.oscs.montana.edu> wrote:
  13.  >Hey,
  14.  >Can anyone tell me how to send a Ctrl-C over a serial line to another PC
  15.  >ad..and then have that PC respond as if it came from its own keyboard?
  16.  
  17. You run Linux on the remote machine. The terminal driver sends signals to the
  18. foreground process group of the session associated with that tty, facilitating
  19. job control.
  20.  
  21. Oh, you aren't running a PC UNIX? Too bad.
  22.  
  23.  >I have all of the serial stuff taken care of and I have trapped the CTRl-C on
  24.  >the sending end. I can easily send a 0x03 to the other machine but it does not
  25.  >seem to trigger the interupt. I have seen some info on a CTRL-C flag but i do
  26.  >not have enough to go on. My sending and receiving programs are capable of
  27.  >sending and reeiving a scancode byte and an ASCII byte. Thanks for any help.
  28.  
  29. Like in UNIX, your remote serial driver has to generate the ``interrupt'' when
  30. it ``sees'' an 0x3. It's not going to happen by itself!
  31. -- 
  32.  
  33.